var localhostPath = "http://" + document.domain + ":8088/ms/";

var globalUserData;

//检查用户是否登录
function islog() {
    $.get(localhostPath + "isLog", function (R) {
        if (R == "" || R == null || R == undefined) {
            if (window != top) {
                top.location.href = localhostPath + "login.html";
            } else {
                window.location.href = localhostPath + "login.html";
            }
        } else {
            globalUserData = R;
        }
    });
}

var wlpathname = window.location.pathname;
if (wlpathname.indexOf("login.html") == -1) islog();
